using System.Collections.Generic;

public class Task
{
    public int Id { get; set; }
    public string Name { get; set; }
	public int ExternalId { get; set; }

    public int ProjectId { get; set; }
    public virtual Project Project { get; set; }
	public virtual ICollection<Job> Jobs { get; set; }
    public virtual ICollection<Task> Children { get; set; }
	public int? ParentId { get; set; }
	public virtual Task Parent { get; set; }

	public Task()
	{
		Jobs = new List<Job>();
	}
}
	


